import React, {Component} from 'react';
import logo from './logo.svg';
import './App.css';
import TestRouter from "./common/TestRouter";
import {createBrowserHistory} from "history";
import { Router} from "react-router-dom";

export const globalHistory = createBrowserHistory({basename:PUBLIC_URL});

export default class App extends Component {
    render() {
        console.log("测试");
        return (
            <div className="App">
                <header className="App-header">
                    <img src={logo} className="App-logo" alt="logo"/>
                    <h1 className="App-title">Welcome to React</h1>
                </header>
                <h1>测211试文</h1>
                <p className="App-intro">
                    To get started, edit <code>src/App.js</code> and save to reload.
                </p>
                <Router history={globalHistory}>
                    <TestRouter/>
                </Router>
            </div>
        );
    }
}

